package com.lu.integrate.message.center.model.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.lu.integrate.message.center.model.enums.MessageQueueTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description 消息队列中心-队列重试消费处理
 * @date 2023/2/14 11:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class MessageCenterQueueRetryConsumerRequest {

    /**
     * 消息队列的实现方式
     */
    @NotNull(message = "请输入消息队列的实现方式")
    private MessageQueueTypeEnum type;
    /**
     * 配置id
     */
    @NotNull(message = "请输入配置id")
    private Long configId;
    /**
     * 消息ids
     */
    @NotNull(message = "请输入消息ids")
    private List<String> logsIds;

}
